//
//  Common.swift
//  SSSina
//
//  Created by ss on 2017/6/29.
//  Copyright © 2017年 ss. All rights reserved.
//

import UIKit

//屏幕宽度高度的抽取
let SSSCREENW = UIScreen.main.bounds.width
let SSSCREENH = UIScreen.main.bounds.height

//微信相关信息
let SSAppKey = "734377366"
let SSAppSecret = "b81f32740c0c23841a7822bf64fd4a4c"
let SSREDIRECT_URI = "http://www.baidu.com"
//用户名及密码
let SSWEIBONAME = "18638485211"
let SSWEIBOPASSWORD = "sui5970059..."

//通知名
let SSSWITCHROOTVIEWCONTROLLER = NSNotification.Name(rawValue: " SSSWITCHROOTVIEWCONTROLLER")


//和OC的PCH文件类似 - > 全局共享

//RGB颜色
func RGB (r: CGFloat, g:CGFloat, b:CGFloat,alpha:CGFloat = 1)->UIColor {
    return UIColor(red: r/255,green: g/255, blue: b/255, alpha:alpha)
}


//随机颜色
func randomColor() -> UIColor{
    //随机数
    let r = CGFloat(arc4random()%256)
    let g = CGFloat(arc4random()%256)
    let b = CGFloat(arc4random()%256)
    
    return RGB(r: r, g: g, b: b)
}

//在写程序之前,先设置好字体的大小,以后后期好维护
//小号字体
let SSSmallFontSize:CGFloat = 10
//中号字体
let SSNormalFontSize:CGFloat = 14
//大号字体
let SSBigFontSize:CGFloat = 18

// 主题颜色
let SSThemeColor = UIColor.orange
